# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=srain
pkgver=1.4.0
pkgrel=0
pkgdesc="Modern IRC client written in GTK."
url="https://srain.im"
arch="all"
license="GPL-2.0"
makedepends="cmake gettext glib-dev gtk+3.0-dev libconfig-dev libsecret-dev libsoup-dev
	meson ninja openssl-dev py3-sphinx"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/SrainApp/srain/archive/$pkgver.tar.gz"

build() {
	meson setup \
		--prefix=/usr \
		--datadir=/usr/share \
		--sysconfdir=/etc	\
		--buildtype=release	\
	builddir
	ninja -C builddir
}

check() {
	meson check
}

package() {
	DESTDIR="$pkgdir" ninja -C builddir install
}

sha512sums="
1708d1d1ec97c9f35a8702526a95bb60bf0ea50b742a76081508ef42a512e8c113ef1949c3b9f3db4585d8fb11cdb197f65fc7bc10480a533c69982c21185e55  srain-1.4.0.tar.gz
"
